package com.market.goods.dao.po;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

/**
 * 优惠券领用表
 */
@Table(name = "coupon_use")
public class CouponUsePO implements Serializable {
    /**
     * 主键Id
     */
    private Long id;

    /**
     * 购物券ID
     */
    @Column(name = "coupon_id")
    private Long couponId;

    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 订单ID
     */
    @Column(name = "order_id")
    private Long orderId;

    /**
     * 购物券状态
     */
    @Column(name = "coupon_status")
    private String couponStatus;

    /**
     * 领券时间
     */
    @Column(name = "get_time")
    private Date getTime;

    /**
     * 使用时间
     */
    @Column(name = "using_time")
    private Date usingTime;

    /**
     * ֧支付时间
     */
    @Column(name = "used_time")
    private Date usedTime;

    /**
     * 过期时间
     */
    @Column(name = "expire_time")
    private Date expireTime;

    private static final long serialVersionUID = 1L;

    /**
     * ��ȡ���
     *
     * @return id - ���
     */
    public Long getId() {
        return id;
    }

    /**
     * ���ñ��
     *
     * @param id ���
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * ��ȡ����ȯID
     *
     * @return coupon_id - ����ȯID
     */
    public Long getCouponId() {
        return couponId;
    }

    /**
     * ���ù���ȯID
     *
     * @param couponId ����ȯID
     */
    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    /**
     * ��ȡ�û�ID
     *
     * @return user_id - �û�ID
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * �����û�ID
     *
     * @param userId �û�ID
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * ��ȡ����ID
     *
     * @return order_id - ����ID
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * ���ö���ID
     *
     * @param orderId ����ID
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * ��ȡ����ȯ״̬
     *
     * @return coupon_status - ����ȯ״̬
     */
    public String getCouponStatus() {
        return couponStatus;
    }

    /**
     * ���ù���ȯ״̬
     *
     * @param couponStatus ����ȯ״̬
     */
    public void setCouponStatus(String couponStatus) {
        this.couponStatus = couponStatus == null ? null : couponStatus.trim();
    }

    /**
     * ��ȡ��ȯʱ��
     *
     * @return get_time - ��ȯʱ��
     */
    public Date getGetTime() {
        return getTime;
    }

    /**
     * ������ȯʱ��
     *
     * @param getTime ��ȯʱ��
     */
    public void setGetTime(Date getTime) {
        this.getTime = getTime;
    }

    /**
     * ��ȡʹ��ʱ��
     *
     * @return using_time - ʹ��ʱ��
     */
    public Date getUsingTime() {
        return usingTime;
    }

    /**
     * ����ʹ��ʱ��
     *
     * @param usingTime ʹ��ʱ��
     */
    public void setUsingTime(Date usingTime) {
        this.usingTime = usingTime;
    }

    /**
     * ��ȡ֧��ʱ��
     *
     * @return used_time - ֧��ʱ��
     */
    public Date getUsedTime() {
        return usedTime;
    }

    /**
     * ����֧��ʱ��
     *
     * @param usedTime ֧��ʱ��
     */
    public void setUsedTime(Date usedTime) {
        this.usedTime = usedTime;
    }

    /**
     * ��ȡ����ʱ��
     *
     * @return expire_time - ����ʱ��
     */
    public Date getExpireTime() {
        return expireTime;
    }

    /**
     * ���ù���ʱ��
     *
     * @param expireTime ����ʱ��
     */
    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }
}